<?phpnamespace app\common\model;/** * 订单物品信息模型 */class OrderGoods extends BaseModel{    // 定义表名    protected $name = 'pt_order_goods';    protected $updateTime = false;    // 定义主键    protected $pk = 'order_goods_id';    // 追加字段    protected $append = [];        /**     * 是否保价     */    public function getIsInsuredAttr($value)    {        $status = [0 => '否', 1 => '是'];        return ['text' => $status[$value], 'value' => $value];    }        /**     * 是否需要保温箱     */    public function getIsIncubatorAttr($value)    {        $status = [0 => '否', 1 => '是'];        return ['text' => $status[$value], 'value' => $value];    } }